package com.coolgor.axnut.entity.wechat.qyh;

import java.util.Date;



/**
 * 企业号授权token
 * 
 * @author CoolGor
 *
 */
public class QYHAccessToken {

	// 主键ID
	private Long recordId;
	// 企业号的ID
	private String corpId;
	// 企业号的中文名字
	private String corpName;
	// 应用的ID
	private String agentId;
	// 应用的中文名字
	private String agentName;
	// 应用的secret密码
	private String secret;	
	// 获取到的凭证
	private String accessToken;
	// 创建时间
	private Date createTime;
	// 失效时间
	private Date invalidTime;
	// 凭证的有效时间（秒）
	private long expireTime;
	

	public Long getRecordId() {
		return recordId;
	}

	public void setRecordId(Long recordId) {
		this.recordId = recordId;
	}

	public String getCorpId() {
		return corpId;
	}

	public void setCorpId(String corpId) {
		this.corpId = corpId;
	}

	public String getCorpName() {
		return corpName;
	}

	public void setCorpName(String corpName) {
		this.corpName = corpName;
	}

	public String getAgentId() {
		return agentId;
	}

	public void setAgentId(String agentId) {
		this.agentId = agentId;
	}

	public String getAgentName() {
		return agentName;
	}

	public void setAgentName(String agentName) {
		this.agentName = agentName;
	}

	public String getSecret() {
		return secret;
	}

	public void setSecret(String secret) {
		this.secret = secret;
	}

	public String getAccessToken() {
		return accessToken;
	}

	public void setAccessToken(String accessToken) {
		this.accessToken = accessToken;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getInvalidTime() {
		return invalidTime;
	}

	public void setInvalidTime(Date invalidTime) {
		this.invalidTime = invalidTime;
	}

	public long getExpireTime() {
		return expireTime;
	}

	public void setExpireTime(long expireTime) {
		this.expireTime = expireTime;
	}


	@Override
	public String toString() {
		return "QYHAccessToken [recordId=" + recordId + ", corpId=" + corpId + ", corpName=" + corpName + ", agentId="
				+ agentId + ", agentName=" + agentName + ", secret=" + secret + ", accessToken=" + accessToken
				+ ", createTime=" + createTime + ", invalidTime=" + invalidTime + ", expireTime=" + expireTime
				+ ", toString()=" + super.toString() + "]";
	}

}
